<?php
/**
 * CreateTime: 2023/12/12 16:04
 * User:LinQ
 */

namespace App\Http\Controllers\Role;

use App\Http\Controllers\BasicInterfaceController;
use App\Http\Requests\Role\RoleRequest;
use App\Http\Requests\System\ListRequest;
use App\Http\Service\Role\RoleService;

class RoleController implements BasicInterfaceController
{

    public function getList()
    {
        $request = request()->only('page','page_size','filters','desc');
        (new ListRequest())->check($request);
        (new RoleService())->getList($request);
    }

    public function bindUser(){
        $request = request()->only('user_ids','role_id');
        (new RoleRequest())->scene('bind_user')->check($request);
        (new RoleService())->bindUser($request);
    }

    public function getSelect()
    {

    }

    public function getSelectHasPage()
    {

    }

    public function getInfo($id)
    {

    }

    public function create()
    {
        $request = request()->only('role_name');
        (new RoleRequest())->scene('create')->check($request);
        (new RoleService())->create($request);
    }

    public function fakeDelete($id)
    {

    }

    public function delete()
    {

    }

    public function update($id)
    {

    }

    public function fakeDeleteByIds($ids)
    {

    }
}
